package com.sc.ktapplication.common.net.entity

import android.text.TextUtils
import com.sc.ktapplication.BuildConfig

class HttpResponse<T> {

    var data: MutableList<T>? = null
    var obj: T? = null
    var msg: String? = null
    var isSuccess: Boolean = false

    val errorMsg: String?
        get() = if (BuildConfig.DEBUG && !TextUtils.isEmpty(msg)) {
            msg
        } else {
            "网络连接异常，请稍后再试！"
        }
}